import request from '@/common/request.js';

const complaint = {
	// 获取投诉建议列表
	complainList: params => request.globalRequest(`/tiwang-weixin/wx/ele/getElePageBylocation`, 'GET', params, 1),
	// 获取我的投诉列表
	myComplainList: params => request.globalRequest(`/tiwang-weixin/wx/complain/myComplainList`, 'GET', params, 1),
	// 我的投诉详情
	complainDetail: params => request.globalRequest(`/tiwang-weixin/wx/complain/complainDetail`, 'GET', params, 1),
	// 投诉
	complain_save: params => request.globalRequest(`/tiwang-weixin/wx/complain/save`, 'POST', params, 3),
	
}

export default complaint